import TabsView from '@/layouts/tabs/TabsView'

// 路由配置
const options = {
  routes: [
    {
      path: '/login',
      name: '登录页',
      component: () => import('@/pages/login')
    },
    {
      path: '*',
      name: '404',
      component: () => import('@/pages/exception/404'),
    },
    {
      path: '/403',
      name: '403',
      component: () => import('@/pages/exception/403'),
    },
    {
      path: '/',
      name: '首页',
      component: TabsView,
      redirect: '/login',
      children: [
        {
          path: 'personnel',
          name: '人员管理',
          meta: {
            icon: 'team',
            authority: {
              role: 'admin'
            }
          },
          component: () => import('@/pages/demo')
        },
        {
          path: 'diary',
          name: '日记平台',
          meta: {
            icon: 'profile',
          },
          component: () => import('@/pages/Diary'),
        },
        {
          path: '/diaryDetail',
          name: '笔记详情',
          meta: {
            icon: 'profile',
            invisible:true
          },
          component: () => import('@/pages/DiaryDetail'),
         
        },
        {
          path: 'pushDiary',
          name: '发布日记',
          meta: {
            icon: 'profile',
          },
          component: () => import('@/pages/pushDiary'),
        },
      ]
    }
  ]
}

export default options
